package data.Table;



public interface PageInterface {
	
	public static String filePath = "./source/test.db";
	
	public final static int page_internalsize = 12;
	public final static int page_leafsize = 8;
	public final static int page_flages = 1;    //Flags. 1: intkey, 2: zerodata, 4: leafdata, 8: leaf
	public final static int page_firstfreeblock = 2;  //First byte of the cell content area 
	public final static int page_numofcells = 2; //Number of cells on this page 
	public final static int page_byteoffset = 2; //Byte offset to the first free block 
	public final static int page_emptyPicesNum =  1;
	public final static int page_rightchild = 4; //will not exists in leaf page
	public final static int page_pointersize = 4;
	
	public final static int page_cell_head_size = 2; //max size 65536 byte
	public final static int page_cell_type_int = 4 ;//if type is 4 ---integer
	public final static int page_cell_type_long = 8; //if type is 8 ---long
	public final static int page_cell_type_double = 7; //if type is 7-- double(8 byte)
	public final static int page_cell_type_text = 13 ;//n>=13  (n-13)/2
	
	
	public abstract byte[] read();
	public abstract byte[] readHead();
	

	public abstract int[] readPointer();
	

}
